package com.project.bean;

import java.time.LocalDate;

/**
 *邮件对象实体类
 */
public class MailBean {
    /**邮件编号*/
    private Integer mailId;
    /**主题*/
    private String title;
    /**邮件内容*/
    private String content;
    /**附件*/
    private String url;
    /**时间*/
    private LocalDate date = LocalDate.now();
    /**收件人*/
    private String name;
    /**阅读状态*/
    private String status="有效";
    private UserBean userBean;

    public MailBean() {
    }

    public MailBean(String title, String content, String url) {
        this.title = title;
        this.content = content;
        this.url = url;
    }

    public MailBean(String title, String content, String url, LocalDate date, String name, String status) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.date = date;
        this.name = name;
        this.status = status;
    }

    public Integer getMailId() {
        return mailId;
    }

    public void setMailId(Integer mailId) {
        this.mailId = mailId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }

    @Override
    public String toString() {
        return "MailBean{" +
                "mailId=" + mailId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", date=" + date +
                ", name='" + name + '\'' +
                ", status='" + status + '\'' +
                ", userBean=" + userBean +
                "}\n";
    }
}
